package playground.fibu.ejb.dao;

import playground.fibu.ejb.dao.mysql.MySQLDAOFactory;

public abstract class DAOFactory {

	// List of DAO types supported by the factory
	public static final int MYSQL = 1;

	// There will be a method for each DAO that can be
	// created. The concrete factories will have to
	// implement these methods.
	public abstract BookingDAO getBookingDAO();

	public abstract AccountDAO getAccountDAO();

	// public abstract OrderDAO getOrderDAO();

	public static DAOFactory getDAOFactory(int whichFactory) {

		switch (whichFactory) {
		case MYSQL:
			return new MySQLDAOFactory();
		default:
			return null;
		}
	}
}
